<tbody>
{volist name="data" id="user"}
<tr class="gradeX">
    <td>
        {switch name="$user.uimg"}
        {case value=""}
        <img src="/static/admin/main/assets/img/k.jpg" class="tpl-table-line-img"
             alt="">
        {/case}
        {default /}
        <img src="/uploads/{$user.uimg}" class="tpl-table-line-img" alt="用户头像">
        {/switch}
    </td>
    <td class="am-text-middle">{$user.username}</td>
    <td class="am-text-middle">{$user.uname}</td>
    <td class="am-text-middle">{$user.utel}</td>
    <td class="am-text-middle">
        {switch name="$user.status" }
        {case value="0"}未报名{/case}
        {case value="1"}已报名{/case}
        {case value="2"}上课中{/case}
        {/switch}
    </td>
    <td class="am-text-middle">
        <div class="tpl-table-black-operation">
            <a href="{:url('admin/User/edit',['uid'=>$user.uid])}" class="myedit">
                <i class="am-icon-pencil" data-id="{$user.uid}"></i> 编辑
            </a>
            <a href="javascript:;" class="tpl-table-black-operation-del myblack" data-id="{$user.uid}">
                <i class="am-icon-close"></i>
                <span class="myspan">{if condition="$user.black==1"}移出黑名单
                                            {else /}移入黑名单{/if}</span>
            </a>
        </div>
    </td>
</tr>
{/volist}
</tbody>